-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix oomparser regex for kernels 5.0 and higher #2817
Conversation
…ntroduced in google#2418 Signed-off-by: Kris Gambirazzi <kris.gambirazzi@transferwise.com>
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Hi @kgtw. Thanks for your PR. I'm waiting for a google member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@googlebot I signed it! |
@kgtw would you be able to provide a unit test to save us from regression? |
@kgtw will the regexp work for pre-5.0 messages too? |
The regex being changed is only for >=5.0 kernels. OOM messages on kernels lower than 5.0 have a different format and are handled by a different regex pattern and the legacy test cases L33-L59 The existing functionality of cadvisor/utils/oomparser/oomparser.go Lines 73 to 89 in dcbeba1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, sir!
@bobbypage you are still the only person that has power to LGTM it.
/ok-to-test |
thanks! |
#2418 introduced new regex for 5.0 kernels and higher, the regex had a typo and wasn't resolving the correct container names.
Fixes: #2813